

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Prueba</title>
        <script language="javascript" src="js/jquery.js"></script>
        <script language="javascript" src="js/prueba.js"></script>
                
    </head>
    <body>
        <%
              String mensaje =(String)request.getAttribute("mensaje");
              String error = (String)request.getAttribute("error");
        %>
        <center>

                <table border="0" cellpadding="3" cellspacing="3">
                    <tr>
                        <td>Nombre :</td>
                        <td><input type="text" id="caja1" name="caja1"></td>
                    </tr>
                    <tr>
                        <td>Apellidos :</td>
                        <td><input type="text" id="caja2" name="caja2"></td>
                </table>
                <input type="button" id="send" value="Send">
      
        </center>
        <span id="ap"></span>
        <%if(mensaje != null){%>
              <div><%=mensaje%></div>
        <%}%>
        <%if(error != null){%>
              <div><%=error%></div>
        <%}%>
    </body>
</html>
